package cn.sciento.farm.devicemanager.dao.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

/**
 * <p>
 * 水肥机管理
 * </p>
 *
 * @author wumu
 * @since 2019-07-25
 */
public class DevWaterFertilizer extends Model<DevWaterFertilizer> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    private String name;

    /**
     * 网关编号
     */
    private String eui;

    private Integer modbusAddr;

    /**
     * 通道数量
     */
    private Integer channelNumber;

    private Integer sequence;

    private Integer online;

    private String remark;

    private Long createTime;

    private Long updateTime;

    private String tenantId;

    private Integer areaId;

    /**
     * 纬度
     */
    private String location;

    /**
     * 上传周期
     */
    private Integer period;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getEui() {
        return eui;
    }

    public void setEui(String eui) {
        this.eui = eui;
    }

    public Integer getModbusAddr() {
        return modbusAddr;
    }

    public void setModbusAddr(Integer modbusAddr) {
        this.modbusAddr = modbusAddr;
    }

    public Integer getChannelNumber() {
        return channelNumber;
    }

    public void setChannelNumber(Integer channelNumber) {
        this.channelNumber = channelNumber;
    }

    public Integer getSequence() {
        return sequence;
    }

    public void setSequence(Integer sequence) {
        this.sequence = sequence;
    }

    public Integer getOnline() {
        return online;
    }

    public void setOnline(Integer online) {
        this.online = online;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Long getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Long createTime) {
        this.createTime = createTime;
    }

    public Long getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Long updateTime) {
        this.updateTime = updateTime;
    }

    public String getTenantId() {
        return tenantId;
    }

    public void setTenantId(String tenantId) {
        this.tenantId = tenantId;
    }

    public Integer getAreaId() {
        return areaId;
    }

    public void setAreaId(Integer areaId) {
        this.areaId = areaId;
    }

    public String getLocation() {
        return location;
    }

    public void setLocation(String location) {
        this.location = location;
    }

    public Integer getPeriod() {
        return period;
    }

    public void setPeriod(Integer period) {
        this.period = period;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "DevWaterFertilizer{" +
        "id=" + id +
        ", name=" + name +
        ", eui=" + eui +
        ", modbusAddr=" + modbusAddr +
        ", channelNumber=" + channelNumber +
        ", sequence=" + sequence +
        ", online=" + online +
        ", remark=" + remark +
        ", createTime=" + createTime +
        ", updateTime=" + updateTime +
        ", tenantId=" + tenantId +
        ", areaId=" + areaId +
        ", location=" + location +
        ", period=" + period +
        "}";
    }
}
